import { IsMobilePhone, IsNotEmpty } from 'class-validator';
import { serverCode } from '../../tool/server.code'

class Inner {
    @IsMobilePhone('zh-CN', { message: "手机号格式有误，请检查", context: { errorCode: serverCode.ERROR } })
    phone: string;
    @IsNotEmpty({ message: "验证码不能为空" })
    code: string;
}
export class UserLoginDTO {
    data: Inner;
}

//tslint:disable
